package com.aiyige.page.my.wallet.model;

/**
 * 单笔明细 服务端model
 */
public class WalletSingleModel {
    //normal-普通文本，normal_RMB-人民币，normal_mark-记号，normal_grey-灰色，normal_extra-额外信息

    public final static String normal = "normal";// 普通文本

    public final static String normal_RMB = "normal_RMB"; // 人民币

    public final static String normal_mark = "normal_mark"; //记号

    public final static String normal_grey = "normal_grey";//灰色

    public final static String normal_extra = "normal_extra";//额外信息

    private String name;

    private String value;

    private String type = normal;

    private String extra;

    private String role;

    private WalletSingleModel(Builder builder) {
        setName(builder.name);
        setValue(builder.value);
        setType(builder.type);
        setExtra(builder.extra);
    }

    public WalletSingleModel() {
    }

    public static Builder newBuilder() {
        return new Builder();
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public static final class Builder {
        private String name;
        private String value;
        private String type;
        private String extra;

        private Builder() {
        }

        public Builder name(String val) {
            name = val;
            return this;
        }

        public Builder value(String val) {
            value = val;
            return this;
        }

        public Builder type(String val) {
            type = val;
            return this;
        }

        public Builder extra(String val) {
            extra = val;
            return this;
        }

        public WalletSingleModel build() {
            return new WalletSingleModel(this);
        }
    }
}
